package com.fatdetection.demo.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fatdetection.demo.bean.Operator;

import java.util.List;

public interface OperatorService {
    List<Operator> getOptsByProjId(Integer projectId);

    Page<Operator> selectAllPage(Integer current, Integer size);
    public int insertOpt(Operator operator);

    public int editOperator(Operator operator);

    public int delOperator(String username);

    public Operator getOptByUserame(String username);//根据用户名查询单个操作员

    public List<Operator> findAllByProj(String projectName);//根据项目查询操作员

    public List<Operator> findAll();//查询所有操作员

    public Operator login(String username,String password);//登录
}
